package com.mall.shop.entity.ware;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * (PurchaseDetail)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-15 13:48:06
 */
@Getter
@Setter
@TableName("wms_purchase_detail")
@Schema(name = "实体", description = "映射")
public class PurchaseDetail implements Serializable {
    private static final long serialVersionUID = -31173354200819944L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(description = "")
    private Long id;

    @TableField(value = "purchase_id")
    @Schema(description = "采购单id")
    private Long purchaseId;
    
    @TableField(value = "sku_id")
    @Schema(description = "采购商品id")
    private Long skuId;
    
    @TableField(value = "sku_num")
    @Schema(description = "采购数量")
    private Integer skuNum;
    
    @TableField(value = "sku_price")
    @Schema(description = "采购金额")
    private Double skuPrice;
    
    @TableField(value = "ware_id")
    @Schema(description = "仓库id")
    private Long wareId;
    
    @TableField(value = "status")
    @Schema(description = "状态[0新建，1已分配，2正在采购，3已完成，4采购失败]")
    private Integer status;
    
}

